import axios from "axios";

const axiosInstance = axios.create({
    baseURL: "/api",
    timeout: 10000
})

axiosInstance.interceptors.request.use((config) => {
    return config
}, (error) => {
    return Promise.reject(error)
})

axiosInstance.interceptors.response.use((result) => {
    return result.data
}, (error) => {
    return Promise.reject(error)
})

export default axiosInstance